package cn.tedu.ioc.beans;

import org.springframework.stereotype.Component;

/**
 * 锯
 */
@Component("tool")
public class Saw implements Tool{
    private String name = "电锯";
    public Saw(){
        System.out.println("创建了电锯");
    }
    @Override
    public String toString() {
        return "Saw{" +
                "name='" + name + '\'' +
                '}';
    }
}
